﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IKYSWeb
{
    public partial class _Giris : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Url.ToString().Contains("Login.aspx"))
                    hlLoginLink.CssClass = "login";
                else
                    hlLoginLink.CssClass = "login passive";

                //if (Request.Url.ToString().Contains("YeniKullanici.aspx")
                //    || Request.Url.ToString().Contains("YeniKullaniciKayit.aspx"))
                //    hlYeniKullaniciLink.CssClass = "register";
                //else
                //    hlYeniKullaniciLink.CssClass = "register passive";

                if (Request.Url.ToString().Contains("SifremiUnuttum.aspx"))
                    hlSifremiUnuttum.CssClass = "password";
                else
                    hlSifremiUnuttum.CssClass = "password passive";


                hlLoginLink.NavigateUrl = VirtualPathUtility.ToAbsolute("~/Login.aspx");
                //hlYeniKullaniciLink.NavigateUrl = VirtualPathUtility.ToAbsolute("~/Yetki/YeniKullanici.aspx");
                hlSifremiUnuttum.NavigateUrl = VirtualPathUtility.ToAbsolute("~/Yetki/SifremiUnuttum.aspx");
            }
        }
    }
}